package com.hzeport.bgs22emduty.dto.emergencyCall;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hzeport.bgs22emduty.vo.file.FileVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class ScreenDutyEmergencyCallSaveDTO {

    private String id;
    /**
     * $column.comments
     */
    @ApiModelProperty(value ="标题", required = true)
    @NotBlank(message = "标题不能为空")
    @TableField(value ="TITLE")
    @JsonProperty(value = "title")
    private String title;

    @ApiModelProperty(value="关区GUID，源自H4A")
    @TableField(value ="CUSTOM_ID")
    @JsonProperty(value = "customId")
    private String customId;

    /**
     * $column.comments
     */
    @ApiModelProperty(value="关区中文名称")
    @TableField(value ="CUSTOM_NAME")
    @JsonProperty(value = "customName")
    private String customName;

    /**
     * $column.comments
     */
    @ApiModelProperty(value ="正文", required = true)
    @NotBlank(message = "正文不能为空")
    @JsonProperty(value = "mainBody")
    private String mainBody;

    @ApiModelProperty(value ="联络方式", required = true)
    @NotBlank(message = "联络方式不能为空")
    @JsonProperty(value = "phone")
    private String phone;


    @ApiModelProperty(value="附件名")
    private List<FileVO> files;
}
